package br.com.esporte.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 
 * @author Milton Domingues
 *
 */
@Entity
@Table(name = "dia_praticado")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class DiaPraticado extends EntidadeEsporte {

	private static final long serialVersionUID = -4294922575226067706L;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "temporada_id")
	private Temporada temporada;

	@Temporal(TemporalType.TIMESTAMP)
	private Date dataHoraInicio;

	@Temporal(TemporalType.TIMESTAMP)
	private Date dataHoraFim;

	public DiaPraticado() {

	}

	public Date getDataHoraFim() {
		return dataHoraFim;
	}

	public Date getDataHoraInicio() {
		return dataHoraInicio;
	}

	public Temporada getTemporada() {
		return temporada;
	}

	public void setDataHoraFim(Date dataHoraFim) {
		this.dataHoraFim = dataHoraFim;
	}

	public void setDataHoraInicio(Date dataHoraInicio) {
		this.dataHoraInicio = dataHoraInicio;
	}

	public void setTemporada(Temporada temporada) {
		this.temporada = temporada;
	}

}
